'''
Clickhouse DB
'''

from clickhouse_driver import Client

# 创建ClickHouse客户端
client = Client(host='192.168.213.128', port=9000, user='default', password='admin', database='default')

# ... 在您的策略中，您可以使用client对象来查询或插入数据到ClickHouse ...
query = 'SELECT * FROM your_table WHERE symbol = %(symbol)s'
data = client.execute(query, {'symbol': 'IF88'})
print(data)